package com.ule.merchant.order.mon.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ule.merchant.order.mon.service.entity.LgsOrder;
import com.ule.merchant.order.mon.service.mapper.LgsOrderMapper;
import com.ule.merchant.order.mon.service.service.LgsOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class LgsOrderServiceImpl implements LgsOrderService {

    @Autowired
    private LgsOrderMapper lgsOrderMapper;

    @Override
    public LgsOrder selectOne(String expressNo) {
        QueryWrapper<LgsOrder> wrapper = new QueryWrapper();
        wrapper.eq("EXPRESS_NO", expressNo);
        LgsOrder lgsOrder = lgsOrderMapper.selectOne(wrapper);
        log.info("查询订单信息：{}", lgsOrder);
        return lgsOrder;
    }

}
